home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 93-10.Z / 93-10 / text0216.txt < prev    next >
Encoding:
Text File  |  1993-10-18  |  6.0 KB  |  145 lines

  1.  
  2. Please unscribe.
  3.  
  4. Thanks,
  5.  
  6. Allen
  7. -----
  8. From news@samba.oit.unc.edu  Sun Oct 17 22:08:59 1993
  9. Received: from samba.oit.unc.edu by SunSITE.unc.edu (SMI4.1/FvK 1.02)
  10.           id AA24259; Sun, 17 Oct 93 22:08:59 EDT
  11. Return-Path: <news>
  12. Received: by samba.oit.unc.edu (5.65/TAS/11-16-88)
  13.     id AA14276; Sun, 17 Oct 1993 21:59:11 -0400
  14. Received: from GATEWAY by samba.oit.unc.edu with netnews
  15.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  16. To: winsock@calypso.oit.unc.edu
  17. Date: 18 Oct 93 00:17:01 GMT
  18. From: paul@atlas.abccomp.oz.au (Paul Brooks)
  19. Message-Id: <CF2GsE.5ou@atlas.abccomp.oz.au>
  20. Organization: TurboSoft Pty Ltd, Sydney, Australia
  21. Sender: ses@calypso.oit.unc.edu
  22. Subject: Correct format for STRUCT HOSTENT ?
  23.  
  24. Could someone more familar with BSD than I please help?
  25.  
  26. When constructing an empty list for the ALIASES fields in
  27. the various database structs, is it permissable for the field to be
  28. NULL, or must it be a valid pointer to a NULL pointer?
  29.  
  30. I am getting a few (but not all) applications crashing when I use
  31. a NULL pointer for the h_aliases field, but surely good programming
  32. practice would be to check if that was NULL before using it...
  33.  
  34. -- 
  35. Paul Brooks              |paul@abccomp.oz.au       |Emerging Standard:
  36. TurboSoft Pty Ltd        |pwb@newt.phys.unsw.edu.au|  one that has not yet
  37. 579 Harris St., Ultimo   |                         |  been superseded.
  38. Sydney Australia 2007    |ph: +61 2 281 3155       |  
  39. From PETER@psychnet.psychol.utas.edu.au  Sun Oct 17 23:04:35 1993
  40. Received: from diemen.utas.edu.au by SunSITE.unc.edu (SMI4.1/FvK 1.02)
  41.           id AA27190; Sun, 17 Oct 93 23:04:35 EDT
  42. Received: from charon.psychol.utas.edu.au by diemen.utas.edu.au with SMTP id AA13378
  43.   (5.65c/IDA-1.4.4 for <winsock@sunsite.unc.edu>); Mon, 18 Oct 1993 14:04:16 +1100
  44. Received: From PSYCHNET/WORKQUEUE by charon.psychol.utas.edu.au
  45.           via Charon-4.0-VROOM with IPX id 100.931018140402.256;
  46.           18 Oct 93 14:04:20 -1100
  47. Message-Id: <MAILQUEUE-101.931018140355.480@psychnet.psychol.utas.edu.au>
  48. To: heilbron@informatik.tu-muenchen.de (Stephen Heilbronner),
  49.         winsock@sunsite.unc.edu
  50. From: "Peter R. Tattam"  <PETER@psychnet.psychol.utas.edu.au>
  51. Date:         18 Oct 93 14:03:55 GMT+1000
  52. Subject:      Re: QuickWin calling Trumpet Winsock functions doesnt't wor
  53. Priority:     normal
  54. X-Mailer:     Pegasus Mail v2.3 (R4).
  55.  
  56. > Date:          Fri, 15 Oct 93 22:38:42 EDT
  57. > Reply-to:      heilbron@informatik.tu-muenchen.de
  58. > From:          heilbron@informatik.tu-muenchen.de (Stephen Heilbronner)
  59. > To:            Multiple recipients of list <winsock@sunsite.unc.edu>
  60. > Subject:       QuickWin calling Trumpet Winsock functions doesnt't work anymore
  61.  
  62. > I've been using QuickWin (a simple environment from Visual C
  63. > to support convential C programs under Windows)
  64. > to call socket functions from Trumpet Winsock #15.
  65. > (I know I'm not supposed to call any DLL's from QuickWin,
  66. > but I'm porting software from UNIX.)
  67. >
  68. > This has worked fine so far. With the new version of
  69. > Trumpet I get a run-time error 202 on the first
  70. > gethostname or gethostbyaddr after WSAStartup though.
  71. >
  72. > Has anybody else experienced this, too ? Is there a simple
  73. > explanation for this or a workaround ? (BTW: Using SPRY's
  74. > APP2SOCK.DLL seems to work, at least the COMMInitial(),
  75. > COMMOpen() and CommGetMyIP() functions.)
  76. > I'd guess it's the way WINSOCK.DLL was compiled....
  77. >
  78. > Thx for any hints (Even if you tell it wont work on
  79. > other vendors' architectures either) !
  80. >
  81. > Stephen Heilbronner
  82. > <heilbron@informatik.tu-muenchen.de>
  83. >
  84.  
  85. This error is in response to questions I asked a month or so ago regarding
  86. stack overflows.  Since it is quite tricky to safely recover from a stack
  87. overflow (most likely the data segment is corrupted by then), I have opted
  88. to let Turbo Pascal kill the calling app with a 202 error.
  89.  
  90. App developers *Beware*...  Trumpet winsock does need a bit of stack to do
  91. its thing, especially gethostby... calls.  If a puny stack has been
  92. allocated then tough bickies. I'm going to look at altering the DNS code to
  93. use a pool of DNS buffers rather than allocating from the stack.  Also the
  94. debug traces use stack because of extensive string manipulation.
  95.  
  96. In general, I guess the trumpet winsock needs some 1-2K of stack space.
  97. You should also take into account that sometimes windows messages may
  98. cause the stack to be swallowed up quickly.  I suggest to most people to
  99. use a stack of 16K minimum.
  100.  
  101. Is there an official word from any microsoft programmers on what constitues
  102. an adequate stack for a fairly complex windows app?
  103.  
  104. Peter
  105. --
  106. P.Tattam                                  International Phone 61-02-202346
  107. Programmer, Psychology Department         Australia     Phone   002-202346
  108. University of Tasmania, Hobart, Tasmania, Australia     TZ=GMT+10/11
  109.                                           FAX                 61-02-202883
  110. From db@kingkong.wco.ftp.com  Mon Oct 18 01:55:36 1993
  111. Received: from uu3.psi.com by SunSITE.unc.edu (SMI4.1/FvK 1.02)
  112.           id AA07837; Mon, 18 Oct 93 01:55:36 EDT
  113. Received: from MicRodyNe.COm by uu3.psi.com (5.65b/4.0.071791-PSI/PSINet) via SMTP;
  114.         id AA26280 for winsock@SunSite.UNC.EDU; Mon, 18 Oct 93 01:55:32 -0400
  115. Received: from ftp.com (babyoil.ftp.com) by Microdyne.COM (4.1/SMI-4.1)
  116.     id AA06457; Mon, 18 Oct 93 02:03:45 EDT
  117. Received: from kingkong.wco.ftp.com by ftp.com with SMTP
  118.     id AA11925; Mon, 18 Oct 93 01:55:28 -0400
  119. Received: from db.guitar by wco.ftp.com (4.1/SMI-4.1)
  120.     id AA12538; Sun, 17 Oct 93 22:54:32 PDT
  121. Date: Sun, 17 Oct 93 22:54:32 PDT
  122. Message-Id: <9310180554.AA12538@wco.ftp.com>
  123. To: winsock@Microdyne.COM
  124. Subject: Please unsubscribe
  125. From: db@mailhost.ftp.com  (Derek W. Brown)
  126. Reply-To: db@wco.ftp.com
  127. Sender: db@kingkong.wco.ftp.com
  128. Repository: kingkong
  129. Originating-Client: guitar
  130.  
  131. I'll read the newsgroup :}
  132.  
  133. dB
  134.  
  135.  
  136. --
  137.     _________________________________________________________________
  138.  
  139.  
  140.     F                                                   Derek Brown
  141.       T                                                 db@wco.ftp.com
  142.         P                                               (415) 543-9001
  143.     Software                                            (fax) 543-9002
  144.  
  145.